<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
	<title>“组团啦”杯战队信息</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/match/css/bootstrap-grid.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/match/css/bootstrap-modal.css"/>
	<link rel="stylesheet" href="__PUBLIC__/match/css/reset.css" />
	<link rel="stylesheet" href="__PUBLIC__/match/css/public.css" />
</head>
<body>
<section id="top-space"></section>
<div id="scroll-part">
	<section id="team-top-part">
		<div class="wrapper center-block">
			<div class="team-top-left">
				<h1>战队名：{$corps.corpsname}</h1>
				<p>学校：{$corps.school}</p>
				<p>领队：{$corps.headername}</p>
			</div>
			<div class="team-top-right rec-parent">
				<div class="portait-team oh center-block">
					<img src="__PUBLIC__/match/img/logo.png" alt="" width="100%" id="por_team" class="beCircle"/>
				</div>
				<span class="rec-1"></span>
				<span class="rec-2"></span>
				<span class="rec-3"></span>
				<span class="rec-4"></span>
			</div>
		</div>
	</section>
	<div class="wrapper center-block">
		<div class="rec-parent table-wrapper">
			<table>
				<tr>
					<th>参与场次</th>
					<th>胜率</th>
					<th>最高连胜场次</th>
				</tr>
				<tr class="s-td">
					<td>{$data|count}</td>
					<td>{$win_rate}%</td>
					<td></td>
				</tr>
			</table>
			<span class="rec-1"></span>
			<span class="rec-2"></span>
			<span class="rec-3"></span>
			<span class="rec-4"></span>
		</div>
		<div class="rec-parent table-wrapper">
			<table>
				<tr>
					<th>获得荣誉</th>
				</tr>
				<tr class="s-td">
					<td>组团啦杯</td>
				</tr>
			</table>
			<span class="rec-1"></span>
			<span class="rec-2"></span>
			<span class="rec-3"></span>
			<span class="rec-4"></span>
		</div>
	</div>
	<section>
		<div class="wrapper center-block">
			<h1>团队成员：</h1>
			<div id="member-wrapper">
				<ul class="row" >
					<volist name="members" id="m" offset="0" length='4'>
						<li class="col-xs-3">
							<dl class="text-center">
								<dt class="portait-member oh center-block beCircle"><img src="__PUBLIC__/vote/userimg/{$m.picture}" alt="" width="100%"/></dt>
								<dd>{$m.name}</dd>
								<dd class="font-s">{$m.game_position}</dd>
							</dl>
						</li>
					</volist>
				</ul>
				<ul class="row" >
					<volist name="members" id="m" offset="4" length='4'>
						<li class="col-xs-3">
							<dl class="text-center">
								<dt class="portait-member oh center-block beCircle"><img src="__PUBLIC__/vote/userimg/{$m.picture}" alt="" width="100%"/></dt>
								<dd>{$m.name}</dd>
								<dd class="font-s">{$m.game_position}</dd>
							</dl>
						</li>
					</volist>
				</ul>
			</div>


		</div>
	</section>
	<div class="wrapper center-block">
		<volist name="matchs" id="m">
			<div class="rec-parent table-wrapper">
				<table>
					<tr>
						<th>日期</th>
						<th>比赛队伍</th>
						<th>胜负</th>
					</tr>
					<tr class="s-td">
						<td>{$m.match_date}</td>
						<td>
							<a href="{:U('detail')}?id={$m.team_id}" class="z-orange">
							<volist name="m['team']" id="m1">
								<if condition="$m1['camp']=='蓝色方'">
									{$m1.name}
									&nbsp;VS&nbsp;
								</if>
								<if condition="$m1['camp']=='紫色方'">
									{$m1.name}
								</if>
							</volist>
							</a>
						</td>
						<td>{$m.result}</td>
					</tr>
				</table>
				<span class="rec-1"></span>
				<span class="rec-2"></span>
				<span class="rec-3"></span>
				<span class="rec-4"></span>
			</div>
			<div class="text-center">
				<a href="{:U('match')}?id={$m.id}" class="btn-normal">详情</a>
			</div>
		</volist>
	</div>

</div>
<script src="__PUBLIC__/match/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/match/js/public.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	function setPortaitHeight(portait){
		var $portait=$("#"+portait),
				portait_arg=$portait.parent().width();
		$portait.css({
			'min-height':portait_arg+'px',
			'visibility':'visible'
		});
	}
	setPortaitHeight("por_team");
	countScrollHeight("",'scroll-part');
</script>
</body>
</html>
